package com.neu.af.dataFilter.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.neu.af.common.base.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class Data implements BaseEntity<String> {
    String data_id;
    String tag_name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Timestamp create_time;
    String data;

    public String getData_id() {
        return data_id;
    }

    public void setData_id(String data_id) {
        this.data_id = data_id;
    }

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }


    @Override
    public String getId() {
        return data_id;
    }

    @Override
    public String toString() {
        return "Data{" +
                "data_id='" + data_id + '\'' +
                ", tag_name='" + tag_name + '\'' +
                ", create_time=" + create_time +
                ", data='" + data + '\'' +
                '}';
    }
}
